package com.adcc.foc.domain;

/**
 * Created by houxy on 2016/8/2.
 */

import java.io.Serializable;
import java.util.Date;

/**
 * t_auth_user的实体类
 */
public class User implements Serializable {
    private String id;

    private String username;

    private String password;

    private String orgid;

    private String compelltion;

    private String orgName;

    //用于加载当前用户的权限
    private AuthRole authRole;

    //追加一个属性，用于装载相关的部门信息
    private Organization organization;

    private Date passwordUpdateTime;

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Organization getOrganization() {
        return organization;
    }

    public void setOrganization(Organization organization) {
        this.organization = organization;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getOrgid() {
        return orgid;
    }

    public void setOrgid(String orgid) {
        this.orgid = orgid == null ? null : orgid.trim();
    }

    public String getCompelltion() {
        return compelltion;
    }

    public void setCompelltion(String compelltion) {
        this.compelltion = compelltion;
    }

    public AuthRole getAuthRole() {
        return authRole;
    }

    public void setAuthRole(AuthRole authRole) {
        this.authRole = authRole;
    }

    public Date getPasswordUpdateTime() {
        return passwordUpdateTime;
    }

    public void setPasswordUpdateTime(Date passwordUpdateTime) {
        this.passwordUpdateTime = passwordUpdateTime;
    }
}
